<div class="">
    <form id="edit-form"  role="form" data-toggle="validator" method="POST" action="">
        {:token()}
        <div class="form-group">
            <label for="c-name" class="control-label col-xs-12 col-sm-12">{:__('名稱')}:</label>
            <div class="col-xs-12 col-sm-12">
                <input id="c-name" data-rule="required" placeholder="{:__('Enter...')}" class="form-control" name="row[name]" type="text" value="{$row['name']|default=''}">
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="form-group">
            <label for="c-desc" class="control-label col-xs-12 col-sm-12">{:__('描述')}:</label>
            <div class="col-xs-12 col-sm-12">
                <textarea class="form-control" name="row[desc]">{$row['desc']|default=''}</textarea>
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-12">{:__('圖片')}:</label>
            <div class="col-xs-12 col-sm-12">
                <div class="input-group input-group-sm">
                    <input id="c-image" data-rule="" class="form-control" size="50" name="row[image]" type="text" value="">
                    <span class="input-group-btn">
                        <button data-preview-id="p-image" data-mimetype="image/jpeg,image/png,image/jpg" type="button" data-input-id="c-image" id="plupload-image" class="btn btn-primary plupload">{:__('選擇檔案')}</button>
                    </span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="form-group">
            <label for="c-v_type" class="control-label col-xs-12 col-sm-12">{:__('狀態')}:</label>
            <div class="col-xs-12 col-sm-12">
              {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')], (isset($row['status']) ? $row['status'] : null))}
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="form-group">
            <label for="c-v_type" class="control-label col-xs-12 col-sm-12">{:__('模板内容')}:</label>
            <div class="col-xs-12 col-sm-12">
               <textarea name="row[content]" class="editor" style="height: 500px;"></textarea>
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="form-group layer-footer">
            <div class="col-xs-12 col-sm-12" style="text-align: center;">
                <button type="submit" class="btn btn-primary btn-embossed disabled"><i class="fa fa-save"></i> {:__('儲存')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </form>
</div>
